
/**
 * First we will load all of this project's JavaScript dependencies which
 * includes Vue and other libraries. It is a great starting point when
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap');

window.Vue = require('vue');

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);


/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the page. Then, you may begin adding components to this application
 * or customize the JavaScript scaffolding to fit your unique needs.
 */

//Vue.component('example-component', require('./components/ExampleComponent.vue'));

Vue.component('demo', require('./components/Demo.vue'));
Vue.component('editor', require('./components/Editor.vue'));

Vue.component('fav', require('./components/Fav'));
Vue.component('post-item', require('./components/m/PostItem'));

Vue.component('tab', require('./components/m/ParentTab'));
Vue.component('search', require('./components/m/Search'));


// spa单页面路由
import VueRouter from "vue-router";
Vue.use(VueRouter);
import router from "./routes.js";

// 引入mint-ui
import { Search } from 'mint-ui';
Vue.component(Search.name, Search);
import 'mint-ui/lib/style.css'


import { Swipe, SwipeItem } from 'mint-ui';

Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);


import { Cell } from 'mint-ui';

Vue.component(Cell.name, Cell);

const app = new Vue({
    el: '#app',
    router
});


